package net.wanho.study.dao;

import net.wanho.study.dto.UserDTO;
import net.wanho.study.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Author：汤小洋
 * Date：2023-08-08 15:02
 * Description：<描述>
 */
public interface UserDao {

    void insertUser(User user);

    void updateUser(User user);

    void deleteById(int id);

    User selectById(int id);

    List<User> selectAll();

    List<User> selectByUsername(String username);

    User selectById2(int id);

    User selectById3(int id);

    User selectByUsernameAndPassword(@Param("username") String username, @Param("password") String password);

    User selectByUsernameAndPassword2(UserDTO userDTO);

    List<User> selectOrder(@Param("column") String column,@Param("order") String order);


    List<User> selectByParams(User user);

    List<User> selectByParams2(User user);

    List<User> selectByIds(List<Integer> ids);
}
